<template>
    <div class="back">
        <el-page-header title="回到主页" @back="goBack"></el-page-header>
    </div>
    <div class="taps">
        <div class="tap chick">
            <el-icon><User /></el-icon> 个人资料</div
        >
        <div class="tap">
            <el-icon><User /></el-icon>个人资料</div
        >
        <div class="tap">
            <el-icon><User /></el-icon>个人资料</div
        >
        <div class="tap">
            <el-icon><User /></el-icon>个人资料</div
        >
        <div class="tap">
            <el-icon><User /></el-icon>个人资料</div
        >
        <div class="tap">
            <el-icon><User /></el-icon>个人资料</div
        >
    </div>
    <div class="content">
        <router-view></router-view>
    </div>
</template>
<script lang="ts">
    import { defineComponent } from 'vue';

    export default defineComponent({
        name: 'UserSetting'
    });
</script>

<script lang="ts" setup>
    import router from '@/router';
    function goBack() {
        router.push({ path: '/' });
    }
</script>

<style scoped lang="scss">
    .back {
        width: 100%;
        height: 45px;
        display: flex;
        align-items: center;
        background-color: white;
        .el-page-header {
            margin-left: 15px;
        }
    }

    .taps {
        height: 610px;
        width: 214px;
        background-color: white;
        margin-top: 20px;
        padding: 10px;
        .tap {
            height: 50px;
            line-height: 50px;
            border-radius: 3px;
            display: flex;
            align-items: center;
            .el-icon {
                margin: 0 10px;
            }
        }

        .chick {
            background-color: #d2e4fd;
            color: #1e80ff;
        }

        .tap:hover {
            background-color: #d2e4fd;
            color: #1e80ff;
        }
    }

    .content {
        width: calc(100% - 234px);
        background-color: white;
        margin-left: 20px;
        margin-top: 20px;
    }
</style>
